Crate pacmanconf
source ·Expand description
§PacmanConf
pacmanconf is a simple parser for pacman config files.
use pacmanconf::Config;
let config = Config::new().expect("failed to parse config");
let config = Config::options()
.root_dir("/chroot")
.pacman_conf("tests/pacman.conf")
.read()
.expect("failed to parse config");
for repo in &config.repos {
println!("{}", repo.name);
}
Structs§
- A pacman config.
- The error type for pacman.conf parsing.
- Error Line holds a line of text and the line number the line is from.
- The options struct allows you to change settings prior to building.
- A Pacman repository.
Enums§
- A list of possible errors that may occur when parsing a pacman.conf